package com.pactera.madp.cp.mapper.marketing;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pactera.madp.cp.api.entity.marketing.MarketingRecEntity;
import com.pactera.madp.cp.api.vo.marketing.MarketingRecVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: yuShen.qi
 * @Date: 2021/5/25 16:25
 * @Description:
 */
public interface MarketingRecMapper extends BaseMapper<MarketingRecEntity> {

    /**
     * 根据标题查询素材
     *
     * @param page
     * @param title
     * @param corpId
     * @return
     */
    IPage allList(Page page, @Param(value = "title") String title, @Param(value = "corpId") Integer corpId);

    List<MarketingRecVO> chooseList(@Param(value = "title") String title, @Param(value = "corpId") Integer corpId, @Param(value = "type") Integer type);

    List<MarketingRecVO> lookListByPage(@Param(value = "title") String title, @Param(value = "corpId") Integer corpId);

    List<MarketingRecVO> lookListByType(@Param(value = "title") String title, @Param(value = "corpId") Integer corpId, @Param(value = "type") Integer type);

}
